from student import Student
from teacher import Teacher


class Notify:
    students = set()
    teacher = Teacher

    def bind_student(self,student):
        self.students.add(student)

    def bind_teacher(self,teacher):
        self.teacher = teacher
        teacher.notify = self

    def newWork(self,work):
        for i in self.students:
            i.todo(work)

